import index from '@/components/cart/index.vue'
import confirm from '@/components/cart/confirm.vue'

//路由列表
const list = [
    {
        path:'index',
        name:'CartIndex',
        component:index,
        meta:{IsLogin:true}
    },
    {
        path:'confirm',
        name:'confirm',
        component:confirm,
        meta:{IsLogin:true}
    },
]

//父级路由
const layout = {
    template:`<router-view></router-view>`
}

export default[{
    path:'/cart',
    name:'cart',
    component:layout,
    children:list
}]